package com.sky.service.wx_user.impl;

import com.sky.entity.Category;
import com.sky.mapper.WXCategoryMapper;
import com.sky.service.wx_user.WXCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WXCategoryServiceImpl implements WXCategoryService {
    @Autowired
    private WXCategoryMapper wxCategoryMapper;

    //根据前端传来的type进行查询分类列表
    @Override
    public List<Category> list(Integer type) {
        //  查询
        return wxCategoryMapper.list(type);
    }
}
